﻿@model QuanLyGiaoVuUI.Models.GiangVienClient.TienDoDeTaiViewModel
@{
    Layout = null;
}

<div>
    <table class="data display datatable">
        <tr>
            <th class="sorting">STT</th>
            <th class="sorting">Tiêu đề</th>
            <th class="sorting">Hoàn thành</th>
            <th class="sorting">Ngày thêm</th>
            <th class="sorting">Nội dung</th>
            @*<td class="table-header-options line-left"></td>*@
        </tr>     
        @{Guid madetai=Guid.NewGuid();}      
    @if (Model.DanhSachTienDoDT != null)
    {
        var count=0;
        var stt=1;
        foreach (var tienDo in Model.DanhSachTienDoDT)
        {
            madetai = tienDo.MaDeTai;
            <tr class="gradeA @(++count % 2 == 0 ? "even" : "odd")">
                <td class="odd gradeX">@(stt++)</td>
                <td class="odd gradeX">@tienDo.TieuDe</td>
                <td class="odd gradeX"><span>@tienDo.TienDoHoanThanh %</span></td>
                <td class="odd gradeX"><span>@tienDo.NgayBaoCao.ToShortDateString()</span></td>
                <td class="odd gradeX"><span>@Html.Raw(tienDo.NoiDung)</span></td>
                @*<td class="odd gradeX"><span><a href="#" class="xoatiendodetaidt" rel="@tienDo.MaTienDoDeTai">[X]</a></span></td>*@
            </tr>
        }
    }
    </table>
    <div><input type="hidden" id="madetai2" value="@madetai" /></div>
</div>